import request from '@/plugins/request';
// 文章发布——本地缩略图上传
export function litimgupload (data) {
    return request({
        url: '/publish/arc/article/lit-img-upload',
        method: 'post',
        data
    });
}
// 文章发布——保存文章
export function articleSave (data) {
    return request({
        url: '/publish/arc/article/add',
        method: 'post',
        data
    });
}
// 单篇文章回显数据
export function arcInfo (data) {
    return request({
        url: '/publish/arc/article/arc-info',
        method: 'get',
        params: data
    });
}
// 文章发布——设置允许的超链接
export function allowurlSave (data) {
    return request({
        url: '/publish/arc/article/allow-url-save',
        method: 'post',
        data
    });
}
// 文章发布——获取允许的超链接
export function allowurlList (data) {
    return request({
        url: '/publish/arc/article/allow-url-list',
        method: 'get',
        params: data
    });
}
// 文章发布——栏目下拉列表
export function columnList (data) {
    return request({
        url: '/publish/arc/article/column-list',
        method: 'get',
        params: data
    });
}
// 文章发布——获取来源、作者下拉选项
export function optionList (data) {
    return request({
        url: '/publish/arc/article/option-list',
        method: 'get',
        params: data
    });
}
// 发布文章列表
export function articleList (data) {
    return request({
        url: '/v1/article/article/list',
        method: 'get',
        params: data
    });
}
// 文章项目/站点/发布人
export function projectInfo (data) {
    return request({
        url: '/v1/article/article/project-info',
        method: 'get',
        params: data
    });
}
// 文章列表-发布人下拉
export function memberInfo (data) {
    return request({
        url: '/v1/article/article/member-info',
        method: 'get',
        params: data
    });
}
// 文章列表-站点列表下拉
export function siteLnfo (data) {
    return request({
        url: '/v1/article/article/site-info',
        method: 'get',
        params: data
    });
}

// 根据发布站点文章栏目下拉
export function arctypeInfo (data) {
    return request({
        url: '/v1/article/article/arctype-info',
        method: 'get',
        params: data
    });
}
// 文章列表生成html
export function makeHtml (data) {
    return request({
        url: '/v1/article/article/make-html',
        method: 'post',
        data
    });
}
// 文章列表-变更属性增加属性和删除属性
export function changeFlag (data) {
    return request({
        url: '/v1/article/article/change-flag',
        method: 'post',
        data
    });
}

// 文章列表-添加标签tasgs
export function addTag (data) {
    return request({
        url: '/v1/article/article/add-tag',
        method: 'post',
        data
    });
}
// 文章列表-栏目变更
export function updateType (data) {
    return request({
        url: '/v1/article/article/update-type',
        method: 'post',
        data
    });
}
// 文章列表-编辑属性
export function editAttribute (data) {
    return request({
        url: '/v1/article/article/edit-attribute',
        method: 'post',
        data
    });
}
// 文章列表-删除文章
export function deleteArticle (data) {
    return request({
        url: '/v1/article/article/delete-article',
        method: 'post',
        data
    });
}
// 文章列表-推送百度
export function toBaidu (data) {
    return request({
        url: '/v1/article/article/to-baidu',
        method: 'post',
        data
    });
}
// 违禁词列表
export function bannedList (data) {
    return request({
        url: '/v1/article/banned/list',
        method: 'get',
        params: data
    });
}
// 违禁词新增
export function createBanned (data) {
    return request({
        url: '/v1/article/banned/create-banned',
        method: 'post',
        data
    });
}
// 违禁词编辑
export function updateBanned (data) {
    return request({
        url: '/v1/article/banned/update-banned',
        method: 'post',
        data
    });
}
// 违禁词删除
export function deleteBanned (data) {
    return request({
        url: '/v1/article/banned/delete-banned',
        method: 'post',
        data
    });
}
// 文章属性列表
export function configList (data) {
    return request({
        url: '/v1/article/attr-config/list',
        method: 'get',
        params: data
    });
}
// 获取站点接口
export function getsiteList (data) {
    return request({
        url: '/v1/article/attr-config/get-site-list',
        method: 'get',
        params: data
    });
}

// 文章属性新增 / 编辑
export function updateConfig (data) {
    return request({
        url: '/v1/article/attr-config/update-attr-config',
        method: 'post',
        data
    });
}
// 文章属性删除
export function deleteConfig (data) {
    return request({
        url: '/v1/article/attr-config/delete-attr-config',
        method: 'post',
        data
    });
}
// 文章栏目列表——栏目列表
export function arctypeList (data) {
    return request({
        url: '/publish/arc/arc-type/index',
        method: 'get',
        params: data
    });
}
// 文章栏目列表——新增/编辑栏目
export function arctypeSet (data) {
    return request({
        url: '/publish/arc/arc-type/arc-type-set',
        method: 'post',
        data
    });
}
// 文章栏目列表——选择模板文件
export function selectTemplet (data) {
    return request({
        url: '/publish/arc/arc-type/select-templet',
        method: 'get',
        params: data
    });
}
// 文章栏目列表——上传模板文件
export function templetupload (data) {
    return request({
        url: '/publish/arc/arc-type/templet-upload',
        method: 'post',
        data
    });
}
// 文章栏目列表——更新栏目
export function makearcType (data) {
    return request({
        url: '/publish/arc/arc-type/make-arc-type',
        method: 'get',
        params: data
    });
}
// 文章栏目列表——内容模型列表
export function channeltypelist (data) {
    return request({
        url: '/publish/arc/arc-type/channeltype-list',
        method: 'get',
        params: data
    });
}
//文章栏目列表栏目初始化属性
export function arctypeInit (data) {
    return request({
        url: '/publish/arc/arc-type/arc-type-init',
        method: 'get',
        params: data
    });
}
// 回收站-回收站列表
export function recycleList (data) {
    return request({
        url: '/v1/article/article/recycle-list',
        method: 'get',
        params: data
    });
}
// 回收站-回收站还原
export function reductionArticle (data) {
    return request({
        url: '/v1/article/article/reduction-article',
        method: 'post',
        data
    });
}
// 回收站-回收站删除
export function deleteRecycle (data) {
    return request({
        url: '/v1/article/article/delete-recycle',
        method: 'post',
        data
    });
}
// sql命令行工具
export function sqlexecute (data) {
    return request({
        url: '/publish/system/sql/execute',
        method: 'post',
        data
    });
}
// 系统设置列表
export function getList (data) {
    return request({
        url: '/publish/system/setting/get-list',
        method: 'get',
        params: data
    });
}
// 获取cookie加密码
export function gettokenSetting (data) {
    return request({
        url: '/publish/system/setting/get-token',
        method: 'get',
        params: data
    });
}
// 新增系统设置参数
export function systemAdd (data) {
    return request({
        url: '/publish/system/setting/system-add',
        method: 'post',
        data
    });
}
// 编辑系统设置参数
export function sysSet (data) {
    return request({
        url: '/publish/system/setting/sys-set',
        method: 'post',
        data
    });
}
